﻿using System.Windows;
using System.Windows.Controls;
namespace QDP.Platform.Services
{
    /// <summary>表示一个工具栏服务</summary>
    public interface IToolbarService
    {
        /// <summary>向工具栏栏中添加一个组件。</summary>
        /// <param name="content">要添加的组件。</param>
        /// <param name="direction">组件在容器中的布局方向。</param>
        void Add(UIElement content, ToolbarLayoutDirection direction = ToolbarLayoutDirection.Top | ToolbarLayoutDirection.Left);
        /// <summary>移除一个任务栏中已经存在的组件。</summary>
        /// <param name="content">要移除的组件。</param>
        void Remove(UIElement content);
        /// <summary>展开工具栏</summary>
        void Expand();
        /// <summary>折叠工具栏</summary>
        void Collpase();
        /// <summary>展开全部专题模块</summary>
        void ExpandAll();
        /// <summary>折叠全部专题模块</summary>
        void CollapseAll();
    }
}